<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%
	request.setCharacterEncoding("UTF-8");
	response.setContentType("text/html;charset=UTF-8");
%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%
	String path = request.getContextPath();
%>
<html lang="zh-cn">
<head>
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <meta name="renderer" content="webkit">
    <title></title>  
    <link rel="stylesheet" href="<%=path %>/admin/css/pintuer.css">
    <link rel="stylesheet" href="<%=path %>/admin/css/admin.css">
    <link rel="stylesheet" href="<%=path %>/admin/css/style.css">
    <link rel="stylesheet" href="<%=path %>/admin/font-awesome-4.7.0/css/font-awesome.css">
    <script src="<%=path %>/admin/js/jquery.js"></script>
    <script src="<%=path %>/admin/js/pintuer.js"></script>  
    <link rel="stylesheet" href="<%=path %>/static/css/paging.css" />
    <script src="<%=path %>/static/js/paging.js"></script>		
</head>
<body>
<form method="get" action="<%=path %>/bUserInfo/registerlist" id="listform">
    <input type="hidden" id="totalSize" name="totalSize" value="${totalSize}">
    <input type="hidden" id="pageNo" name="pageNo" value="${pageNo}">
    <input type="hidden" id="pageSum" name="pageSum" value="${pageSum}">
    <input type="hidden" id="openid" name="openid" value="${openid}">
  <div class="panel admin-panel">
    <div class="panel-head"><strong class="icon-reorder">个人邀请注册列表</strong> <a href="" style="float:right; display:none;">添加字段</a></div>
    <table class="table table-hover text-center">
      <tr class="thead">
        <th style="text-align:left; padding-left:20px;width:5%">序号</th>
        <th style="width:10%">呢称</th>
        <th style="width:10%">姓名</th>
        <th style="width:10%">手机号</th>
        <th style="width:5%">城市</th>
        <th width="10%">注册时间</th>
      </tr>
      <volist name="list" id="vo">
      <c:forEach items="${List}" var="item" varStatus="vs">  
          	<tr class="fir">
			 <td style="text-align:left; padding-left:20px;">
                ${vs.count+pageInfo.startIndex+(pageNo-1)*15}
            </td>
            <td>${item.wxNickname}</td>
            <td>${item.name}</td>
            <td>${item.phone}</td>
            <td>${item.city}</td>
            <td>
				<fmt:formatDate value="${item.createTime}" pattern="yyyy-MM-dd HH:mm:ss" />
			</td>
		</tr>            
	 </c:forEach>
     <c:if test="${empty List}">
		<tr>
        	<td colspan="5" class="t_c">
                <span class="no-records">暂无数据</span>
            </td>
        </tr>
      </c:if>
      <c:if test="${!empty List}">
         <tr>
            <td colspan="8">
                <div id="page" class="page_div"></div>
            </td>
          </tr>
      </c:if>
    </table>
  </div>
</form>
</body>
<script type="text/javascript">
var pageNo = Number($("#pageNo").val());
var totalSize = Number($("#totalSize").val());
var totalPage = Number($("#pageSum").val());
$("#page").paging({
    pageNo:pageNo,//当前页
    totalPage: totalPage,//总页数
    totalSize: totalSize,//总条数
    callback: function(num) {
    	$("#pageNo").val(num);
        $("#listform").submit(); 
   }
})


</script>
</html>